﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;

namespace bChatServerComm
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IChatService" in both code and config file together.
    [ServiceContract(
    SessionMode = SessionMode.Required,
    CallbackContract = typeof(IChatServiceCallback))]
    public interface IChatService
    {
        [OperationContract]
        void Register(string username, string email, string pass, string description);
        
    }

    public interface IChatServiceCallback
    {
        [OperationContract(IsOneWay = true)]
        void Response_Register(bool Success, List<string> Errors);
    }
}
